<?php
/* 
* @Author: Jerry-chen
* @Date:   2014-07-11 17:32:40
* @Last Modified time: 2014-07-24 10:10:53
* @Last Modified by: Jerry-chen<uranusbill@163.com>
* @ Copyright (c) 2014 http://www.cooldreamer.com All rightsreserved.
*/
class GoodstimeModel extends Model
{
	//指定表
	public $table = 'goodstime';
	/**
	 * [add_ 添加数据]
	 * @param [type] $data [description]
	 */
	function add_($data=null)
	{
		//返回主键ID
		$result = $this->add($data);
		return $result;

	}
	public function get_one($where=null,$field=null)
	{
		return $this->where($where)->field($field)->find();
	}
	public function get_all($where=null,$field=null)
	{
		return $this->where($where)->field($field)->all();
	}
	/**
	 * [del_ 删除数据]
	 * @return [type] [description]
	 */
	public function del_($where)
	{
		return $this->where($where)->del();
	}
		/**
	 * [get_in in方法]
	 * @return [type] [description]
	 */
	public function get_in($in=null,$id=null,$field=null)
	{
		return $this->in($in)->order($id)->field($field)->get_all();
	}
}
